<?php include _include(APP_PATH.'view/htm/shop/header.inc.htm');?>

<div id="carousel" class="carousel slide" data-ride="carousel">
	<ol class="carousel-indicators">
		<li data-target="#carousel" data-slide-to="0" class="active"></li>
		<li data-target="#carousel" data-slide-to="1"></li>
		<li data-target="#carousel" data-slide-to="2"></li>
		<li data-target="#carousel" data-slide-to="3"></li>
	</ol>
	<div class="carousel-inner">
		<div class="carousel-item active">
			<img src="<?php echo $shop['slide_1'] ?>" class="d-block w-100" style="height: 160px">
		</div>
		<div class="carousel-item">
			<img src="<?php echo $shop['slide_2'] ?>" class="d-block w-100" style="height: 160px">
		</div>
		<div class="carousel-item">
			<img src="<?php echo $shop['slide_3'] ?>" class="d-block w-100" style="height: 160px">
		</div>
		<div class="carousel-item">
			<img src="<?php echo $shop['slide_4'] ?>" class="d-block w-100" style="height: 160px">
		</div>
	</div>
	<a class="carousel-control-prev" href="#carousel" role="button" data-slide="prev">
		<span class="carousel-control-prev-icon" aria-hidden="true"></span>
		<span class="sr-only">Previous</span>
	</a>
	<a class="carousel-control-next" href="#carousel" role="button" data-slide="next">
		<span class="carousel-control-next-icon" aria-hidden="true"></span>
		<span class="sr-only">Next</span>
	</a>
</div>
<div class="d-flex row pt-4">
	<div class="col-12 col-lg-3">
		<div class="d-flex flex-column">
			<div class="card">
				<div class="card-header">服务范围</div>
				<div class="card-body">
					<?php echo $shop['service'] ?>
				</div>
			</div>
			<div class="card">
				<div class="card-body">
					<div class="card-title h5">热搜榜</div>
					<?php echo $shop['hot'] ?>
				</div>
			</div>
			<div class="card">
				<div class="card-body">
					<div class="card-title h5">联系方式</div>
					<?php echo $shop['lxfs'] ?>
				</div>
			</div>
		</div>
	</div>
	<div class="col-12 col-lg-9">
		<div class="d-flex flex-column">
			<div class="card">
				<div class="card-header">商家介绍</div>
				<div class="card-body">
					<?php echo $shop['intro'] ?>
				</div>
			</div>
			<div class="card">
				<div class="card-header">产品服务</div>
				<div class="card-body row">
					<?php foreach($shop['contact'] as $tid){ ?>
						<?php $thread = thread_read_cache($tid); ?>
						<?php $imglist = attach_find(array('tid' => $tid)); ?>
						<?php if(empty($imglist)){$img = "";}else{$img = $imglist[0]['filename'];} ?>
						<div class="col-lg-2 col-4">
							<a href="<?php echo url('thread-'.$tid); ?>" class="card">
								<img class="bd-placeholder-img card-img-top"  src="<?php echo '/upload/attach/'.$img; ?>" />
								<div class="card-body"><?php echo $thread['subject'] ?></div>
							</a>
						</div>
					<?php } ?>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="card">
	<div class="card-header">案例分享</div>
	<div class="card-body row">
		<?php foreach($shop['case'] as $tid){ ?>
			<?php $thread = thread_read_cache($tid); ?>
			<?php $imglist = attach_find(array('tid' => $tid)); ?>
			<?php if(empty($imglist)){$img = "";}else{$img = $imglist[0]['filename'];} ?>
			<div class="col-lg-2 col-6">
				<a href="http://shop.soqiqi.com<?php echo url('thread-'.$tid); ?>" class="card">
					<img class="bd-placeholder-img card-img-top"  src="<?php echo '/upload/attach/'.$img; ?>" />
					<div class="card-body"><?php echo $thread['subject'] ?></div>
				</a>
			</div>
		<?php } ?>
	</div>
</div>

<?php include _include(APP_PATH.'view/htm/shop/footer.inc.htm');?>